<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <jsp:include page="/WEB-INF/views/commons/common.jsp" />
    <script src="/static/js/system/accident.js"></script>
    <title>理赔管理</title>
</head>

<body>
<c:if test="${qo.state==1}">
    <table id="accident_datagridNOT"></table>
</c:if>
<table id="accident_datagridYES"></table>


<input type="hidden" name="qo" id="qo" value="${qo.state}">
<div id="accident_tbNOT">
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-add9',resizable:true,plain:true" data-cmd="add">增加
    </a>
    <a class="easyui-linkbutton" title="My Dialog" id="tb_edit"
       data-options="iconCls:'icon-edit9',resizable:true,plain:true" data-cmd="edit">编辑
    </a>
    <a class="easyui-linkbutton" title="My Dialog" data-claimstate="2" id="tb_verified"
       data-options="iconCls:'icon-checkpay',resizable:true,plain:true" data-cmd="changeclaimstate">验证待赔
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-refresh9',resizable:true,plain:true" data-cmd="reload">刷新
    </a>
    <div>
        <span style="margin-left: 15px">创建时间:</span>
        <input id="beginDate" name="beginDate" class="easyui-datebox" style="width: 110px" />
        -<input id="endDate" name="endDate" class="easyui-datebox" style="width: 110px" />
        <!--//高级查询-->
        &nbsp;&nbsp;关键字查询&nbsp;<input class="easyui-textbox" type="text" name="keyword" id="keyword"
                                      prompt="报案人手机邮箱" />
        &nbsp;<a class="easyui-linkbutton" data-options="iconCls:'icon-search8'" data-cmd="query">查询</a>
        <input class="easyui-combobox" type="text" name="claimState"
               id="state_combobox"/>
    </div>
</div>

<div id="accident_tbYES">

    <c:if test="${qo.state==2}">
        <a class="easyui-linkbutton" title="My Dialog" data-claimstate="4"
           data-options="iconCls:'icon-checkpass',resizable:true,plain:true" data-cmd="changeclaimstate2">查勘通过
        </a>
        <a class="easyui-linkbutton" title="My Dialog" data-claimstate="3"
           data-options="iconCls:'icon-cancel8',resizable:true,plain:true" data-cmd="changeclaimstate2">查勘失败
        </a>
        <a class="easyui-linkbutton" title="My Dialog"
           data-options="iconCls:'icon-checkprice',resizable:true,plain:true" data-cmd="verifyprice">核价核损
        </a>
    </c:if>
    <c:if test="${qo.state==3}">
        <a class="easyui-linkbutton" title="My Dialog" data-claimstate="6"
           data-options="iconCls:'icon-pass9',resizable:true,plain:true" data-cmd="changeclaimstate2">审批
        </a>
        <a class="easyui-linkbutton" title="My Dialog" data-claimstate="5"
           data-options="iconCls:'icon-nopass9',resizable:true,plain:true" data-cmd="changeclaimstate2">拒审
        </a>
    </c:if>
    <c:if test="${qo.state==4}">
        <a class="easyui-linkbutton" title="My Dialog" data-claimstate="7" id="confirmPay"
           data-options="iconCls:'icon-ispay',resizable:true,plain:true" data-cmd="changeclaimstate2">确认赔付
        </a>
    </c:if>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-checksee',resizable:true,plain:true" data-cmd="verifydetail">查看核价
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-checkcase',resizable:true,plain:true" data-cmd="casedetail">查看案件详情
    </a>
    <a class="easyui-linkbutton" title="My Dialog"
       data-options="iconCls:'icon-refresh9',resizable:true,plain:true" data-cmd="reload2">刷新
    </a>

</div>


<!--输入信息用 dialog-->
<div id="accident_dialog">
    <form id="accident_form" method="post">
        <input type="hidden" id="claimId" name="id">
        <table align="center" style="border-collapse: separate;border-spacing: 10px;">
            <tr>
                <td>报案人姓名</td>
                <td>
                    <select id="accident_combogrid" class="easyui-combogrid" name="claim.id"
                            style="width:175px;"></select>
                </td>
            </tr>
            <tr>
                <td>发生时间</td>
                <td>
                    <input id="accidentTime" class="easyui-datebox" type="text" name="accidentTime" />
                </td>
            </tr>
            <tr>
                <td>发生地点</td>
                <td>
                    <input id="accidentPlace" class="easyui-textbox" type="text" name="accidentPlace" />
                </td>
            </tr>
            <tr>
                <td>案情描述</td>
                <td>
                    <input id="accidentDescription" class="easyui-textbox" type="text" name="accidentDescription"
                           data-options="height:100, multiline:true" />
                </td>
            </tr>
            <tr>
                <td>备注</td>
                <td>
                    <input id="accidentRemark" class="easyui-textbox" type="text" name="accidentRemark"
                           data-options="height:100, multiline:true" />
                </td>
            </tr>
        </table>
    </form>
</div>

// 核价核损功能
<div id="accident_dialog2">
    <form id="accident_form2" method="post">
        <input type="hidden" id="insurerId" name="insurer.id">
        <input type="hidden" id="accidentId" name="accidentId">
        <table align="center" style="border-collapse: separate;border-spacing: 10px;">
            <tr>
                <td>保单编号</td>
                <td>
                    <select id="insure_combogrid" class="easyui-combogrid" name="insurancebill.id"
                            style="width:200px;"></select>
                </td>
            </tr>
            <tr>
                <td>受益人</td>
                <td>
                    <input id="beneficiary" class="easyui-textbox" type="text" name="beneficiary" id="beneficiary" />
                </td>
            </tr>
            <tr>
                <td>收款账户</td>
                <td>
                    <input id="receivableAccount" class="easyui-textbox" type="text" name="receivableAccount" />
                </td>
            </tr>
            <tr>
                <td>赔偿金额</td>
                <td>
                    <input id="money" class="easyui-numberbox" type="text" name="money" />
                </td>
            </tr>
        </table>
    </form>
</div>

<!--保存/取消按钮-->
<div id="dialog_btn">
    <a href="#" class="easyui-linkbutton" iconCls='icon-save8' data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls='icon-cancel8' data-cmd="cancel">关闭</a>
</div>

<!--保存/取消按钮-->
<div id="dialog_btn2">
    <a href="#" class="easyui-linkbutton" iconCls='icon-save8' data-cmd="save2">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls='icon-cancel8' data-cmd="cancel2">关闭</a>
</div>

</body>
</html>
